<?php
namespace Platform\Model;

use PhalApi\Model\DataModel;

class File extends DataModel {

    public function getTableName($id) {
        return 'file';
    }

    public function getFileList($where,$select,$order){
        return $this->table('file')->alias('sf')
            ->leftJoin('goods_imgs','sgi','sgi.file_code = sf.att_save_code')
            ->where($where)->select($select)->order($order)->fetchAll();
    }
}